<?php 
class class_admin extends database
{
	
	// đăng nhập /////////////////////////////////////////////////////////////////////////////
	
	function kiemtraacc($user, $pass)
	{
		$pass = md5($pass);
		$sql = 'select * from admin where Username=\''.$user.'\' and Password=\''.$pass.'\'';		
		$this->setQuery($sql);
		$row = $this->loadOneRow();
		return $row;
	}

}
?>